﻿using SXFramWork.Core;
using SXFramWork.Service.Admin.AuthService.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Service
{
    /// <summary>
    /// 权限服务
    /// </summary>
    public interface IAuthService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<LoginOutPut>> LoginAsync(LoginInput input);
        /// <summary>
        /// 生成验证码
        /// </summary>
        /// <param name="length"></param>
        /// <returns></returns>
        IApiResult CreateVerifyCode(int length);
        /// <summary>
        /// 刷新token
        /// </summary>
        /// <param name="refreshToken"></param>
        /// <returns></returns>
        Task<ApiResult<LoginOutPut>> RefreshToken(string refreshToken);
        /// <summary>
        /// 获得认证信息
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> GetAuthInfo();
        /// <summary>
        /// 设置皮肤
        /// </summary>
        /// <param name="skin"></param>
        /// <returns></returns>
        Task<IApiResult> Settheme(string skin);
    }
}
